home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
gfx
/
ycur2iff.lha
/
ycur2iff
/
README
next >
Wrap
Text File
|
1995-09-04
|
4KB
|
121 lines
YCur2IFF -- .CUR (WinNT) to IFF converter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(C) 1995 Yoda
1. Introduction
---------------
This program converts cursor bitmaps from Windows NT (control
panel) to IFF brushes. It supports both '.CUR' and '.ANI' (animation)
formats. The resultant IFF brushes are saved one per frame. These
files can be joined in an IFF animation using an appropriate program,
as Deluxe Paint.
2. System Requirements and Installation
---------------------------------------
YCur2IFF runs under Kickstart 2.04 and uses iffparse.library.
The program is just the executable binary, so no further installation
procedures are required other than copying the file ycur2iff to the
desired location.
3. Usage
--------
Ycur2iff is a CLI program that takes as argument the filename
of the file to convert, eg.
ycur2iff HORSE.ANI
After processing the file, ycur2iff saves a number of files, twice as
the number of frames. Each frame contains one 'body' and one 'mask'.
The 'body' contains the cursor itself with each pixel with a specified
color. The 'mask' specifies the shape of the cursor frame by
indicating which pixels constitutes the cursor. Each frame's 'body'
and 'mask' are saved in separate files. Using the example above, the
following files (IFF brushes) are produced :
HORSE.fr000.body.iff
HORSE.fr000.mask.iff
HORSE.fr001.body.iff
HORSE.fr001.mask.iff
HORSE.fr002.body.iff
HORSE.fr002.mask.iff
...
For single framed cursors (.CUR extension), only two files are saved,
eg.
ycur2iff 3DGARRO.CUR
produce the files :
3DGARRO.body.iff
3DGARRO.mask.iff
4. Technical details
--------------------
From each frame there are three chunks of data that are used :
(i) palette, (ii) body and (iii) mask. The palette is converted in the
CMAP IFF chunk in the .body.iff file with the body of the cursor. The
cursor body is chunky, so that it is required to convert it to planar,
in the BODY chunk. The mask is monochrome, so that the chunky equals
the planar format. The IFF files are built using the iffparse.library
routines. For speed, the entire input file is loaded to a buffer in
memory.
5. Limitations, Bugs and Features
---------------------------------
By now, this program is hard-coded to handle 32x32 by 16
colors cursors. YCur2iff was originally coded to decode a certain
animation for use in SleepingPointers package (from aminet). As you
can see by the source, the program is rather simple. If
enough feedback is received, I can improve it, in order to be more
sensitive. The source format is not parsed at all.
6. Greetings
------------
Greetings go for the great friends :
Psys (programmer, author of SleepingPointers)
HotShot (musician, author of several aminet mods)
and IST CIIST dudes in general ...
7. Author
---------
You can contact me by the email :
l36612@alfa.ist.utl.pt
or by snailmail :
Rodrigo Ventura
R. José Leilote, 26
1900 Lisboa
Portugal
+--------------------------------------------------------+-----------+
| Rodrigo Ventura, alias <Master Yoda> | / |
+--------------------------------------------------------+ - / --- |
| Electronic Engineering Course, Control and Robotics | | | | |
| Instituto Superior Tecnico, Lisboa, Portugal | | | | |
+--------------------------------------------------------+ - / | |
| L36612@alfa.ist.utl.pt rmmv@camoes.rnl.ist.utl.pt | / |
+--------------------------------------------------------+-----------+
PS: Please apologize my poor English, it is not my native language ... 8-)